package proxy;

/**
 * @author fengling
 * @version V1.0
 * @Package proxy
 * @date 2021/7/9 15:52
 * @Copyright © 2020-2021
 */
public class RealImage implements Image {

    private String fileName;

    public RealImage(String fileName) {
        this.fileName = fileName;
        loadFromDisk(fileName);
    }

    @Override
    public void display() {
        System.out.println("Displaying"+fileName);
    }

    private void loadFromDisk(String fileName) {
        System.out.println("Loading"+fileName);
    }
}
